package com.example.hotel.dao;

import com.example.hotel.entity.Orders;
import com.example.hotel.vo.OrdersVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OrdersDao {
    //增加订单
    int addOrder(Orders o);
    //更新订单状态
    int updateOrdersState(@Param("order_id") int orderId, @Param("state") String state);
    //查看所有订单
    List<OrdersVO> getAllOrders();
    //根据订单号删除订单 
    int deleteOrder(int order_id);

}
